package parts4.lesson46;

public class Demo {
    public static void main(String[] args) throws CloneNotSupportedException {
        Person p=new Person();
        Person b=(Person)p.clone();
        b.setAge(20);
        p.setAge(10);
        System.out.println(b);
        System.out.println(p);

    }
}
